/// createTime : "2024-07-04 15:47:17"
/// updateTime : "2024-07-05 17:20:34"
/// id : 24
/// name : "wang"
/// password : "123456abcd"
/// phone : "13223443123"
/// org : ""
/// orgCode : ""
/// parentName : ""
/// token : "d385f3449dcf3526aa8866f6b5d00e44"
/// email : "472254014@qq.com"
/// valid : "0"
/// identityCode : ""
/// logo : "/profile/avatar/54ff5cb9808bfcfce6b57d25e7e8a596.jpg"
/// userCode : ""
/// recommendUserCode : ""
/// province : ""
/// city : ""
/// districts : ""
/// deviceNo : ""

class UserEntity {
  UserEntity({
      this.createTime, 
      this.updateTime, 
      this.id, 
      this.name, 
      this.password, 
      this.phone, 
      this.org, 
      this.orgCode, 
      this.parentName, 
      this.token, 
      this.email, 
      this.valid, 
      this.identityCode, 
      this.logo, 
      this.userCode, 
      this.recommendUserCode, 
      this.province, 
      this.city, 
      this.districts, 
      this.deviceNo,});

  UserEntity.fromJson(dynamic json) {
    createTime = json['createTime'];
    updateTime = json['updateTime'];
    id = json['id'];
    name = json['name'];
    password = json['password'];
    phone = json['phone'];
    org = json['org'];
    orgCode = json['orgCode'];
    parentName = json['parentName'];
    token = json['token'];
    email = json['email'];
    valid = json['valid'];
    identityCode = json['identityCode'];
    logo = json['logo'];
    userCode = json['userCode'];
    recommendUserCode = json['recommendUserCode'];
    province = json['province'];
    city = json['city'];
    districts = json['districts'];
    deviceNo = json['deviceNo'];
  }
  String? createTime;
  String? updateTime;
  num? id;
  String? name;
  String? password;
  String? phone;
  String? org;
  String? orgCode;
  String? parentName;
  String? token;
  String? email;
  String? valid;
  String? identityCode;
  String? logo;
  String? userCode;
  String? recommendUserCode;
  String? province;
  String? city;
  String? districts;
  String? deviceNo;
UserEntity copyWith({  String? createTime,
  String? updateTime,
  num? id,
  String? name,
  String? password,
  String? phone,
  String? org,
  String? orgCode,
  String? parentName,
  String? token,
  String? email,
  String? valid,
  String? identityCode,
  String? logo,
  String? userCode,
  String? recommendUserCode,
  String? province,
  String? city,
  String? districts,
  String? deviceNo,
}) => UserEntity(  createTime: createTime ?? this.createTime,
  updateTime: updateTime ?? this.updateTime,
  id: id ?? this.id,
  name: name ?? this.name,
  password: password ?? this.password,
  phone: phone ?? this.phone,
  org: org ?? this.org,
  orgCode: orgCode ?? this.orgCode,
  parentName: parentName ?? this.parentName,
  token: token ?? this.token,
  email: email ?? this.email,
  valid: valid ?? this.valid,
  identityCode: identityCode ?? this.identityCode,
  logo: logo ?? this.logo,
  userCode: userCode ?? this.userCode,
  recommendUserCode: recommendUserCode ?? this.recommendUserCode,
  province: province ?? this.province,
  city: city ?? this.city,
  districts: districts ?? this.districts,
  deviceNo: deviceNo ?? this.deviceNo,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['createTime'] = createTime;
    map['updateTime'] = updateTime;
    map['id'] = id;
    map['name'] = name;
    map['password'] = password;
    map['phone'] = phone;
    map['org'] = org;
    map['orgCode'] = orgCode;
    map['parentName'] = parentName;
    map['token'] = token;
    map['email'] = email;
    map['valid'] = valid;
    map['identityCode'] = identityCode;
    map['logo'] = logo;
    map['userCode'] = userCode;
    map['recommendUserCode'] = recommendUserCode;
    map['province'] = province;
    map['city'] = city;
    map['districts'] = districts;
    map['deviceNo'] = deviceNo;
    return map;
  }

}